import React, {Component} from 'react';
import {
  Layout,
  Menu,
  Breadcrumb,
  Modal,
  Form,
  Input,
  Select,
  DatePicker,
  Popconfirm,
  Card,
  Row,
  Col,
  Button,
  Dropdown,
  Icon,
  Upload,
  message,
  Table,
  Pagination,
  Checkbox
} from 'antd';
const {Header, Content, Footer} = Layout;
import { hashHistory,Link } from 'dva/router';
const LineChart = require('react-d3-basic').LineChart;
import _ from 'underscore';
import WrapPage from './_wrap'
import styles from './main.less'
import * as UserModel from '../model/user'

export default class _Page extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
    this.update()
  }
  async update(){
    await UserModel.logout()
    hashHistory.push('/login')
  }

  render() {
    return (
      <WrapPage>
        <Breadcrumb style={{
          margin: '12px 0'
        }}>
          <Breadcrumb.Item>客服工作台</Breadcrumb.Item>
          <Breadcrumb.Item>客户</Breadcrumb.Item>
          <Breadcrumb.Item>李先生</Breadcrumb.Item>
        </Breadcrumb>
        <div style={{
          background: '#fff',
          padding: 24,
          minHeight: 280
        }}>
          <Row>
            退出
          </Row>
        </div>
      </WrapPage>
    );
  }
}
